package com.dankegongyu.lib.common.widget.recyclerview.layoutmanger;

import android.content.Context;
import android.util.AttributeSet;

import androidx.recyclerview.widget.StaggeredGridLayoutManager;

/**
 * 不可滚动的StaggeredGridLayoutManager
 *
 * @author wupuquan
 * @version 1.0
 * @since 2018/9/8 15:42
 */
@Deprecated
public class StaggeredGridLayoutManagerNonScrollable extends StaggeredGridLayoutManager {

    public StaggeredGridLayoutManagerNonScrollable(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
        super(context, attrs, defStyleAttr, defStyleRes);
    }

    public StaggeredGridLayoutManagerNonScrollable(int spanCount, int orientation) {
        super(spanCount, orientation);
    }

    @Override
    public boolean canScrollVertically() {
        return false;
    }

}
